import Router from 'koa-router'
import AuthController from '@/controllers/auth'

const unprotectedRouter = new Router({
    prefix: '/carpark/auth'
})
// 用户登录
unprotectedRouter.post('/login.json', AuthController.login)
// 查询用户信息
unprotectedRouter.post('/query.json', AuthController.query)

const protectedRouter = new Router({
    prefix: '/carpark/auth'
})

export { unprotectedRouter, protectedRouter }
